FROM openjdk:17
ADD target/demo-jenkins.jar /usr/local/demo/demo-jenkins.jar

WORKDIR /usr/local/demo/
EXPOSE 8080

ENTRYPOINT ["java","-jar","-Xms512m", "-Xmx512m","demo-jenkins.jar"]